﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BesAsm.Emgaats.Core;
using BesAsm.Emgaats.Core.Commands;

namespace BesAsm.Emgaats.ModelBuilder.Commands
{
  public class DeployHydraulicsCommand : SingleCommand
  {
    private Model _model;
    private HydraulicsBuilder _hydraulicsBuilder;
    
    public DeployHydraulicsCommand(Model model)
    {
      _model = model;
      _hydraulicsBuilder = new HydraulicsBuilder(model);
    }

    #region IEmgaatsExtensionCommand Members

    public override void Execute()
    {
      base.Execute();
      _hydraulicsBuilder.DeployHydraulics();
    }

    public override void Undo()
    {
      throw new NotImplementedException();
    }

    public override string Name
    {
      get { return "Deploy hydraulics file"; }
    }

    public override string Description
    {
      get { return "Calculates and creates a hydraulics model engine file"; }
    }

    #endregion
  }
}
